FROM       openjdk:8-jdk-buster
RUN        ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime;
ENV        TZ 'Asia/Shanghai'
ENV        LANG en_US.UTF-8
ENV        LANGUAGE en_US:en
EXPOSE     80
COPY       config/* /home/
COPY       *.jar /home/main.jar
#VOLUME     /home/results
WORKDIR    /home
ENTRYPOINT ["java", "-Djava.security.egd=file:/dev/./urandom", "-Duser.timezone=GMT+8", "-jar", "/home/main.jar", "--spring.profiles.active=prod"]